FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagetw.iii.ltc
Resource TypeStructureDefinition
IdStructureDefinition-HNHealthyHabitsModel.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/Lorex/TWLongTermCare_IG_Build/StructureDefinition-HNHealthyHabitsModel.html
URLhttp://ltc-ig.fhir.tw/StructureDefinition/HNHealthyHabitsModel
Version1.1.0
Statusdraft
Date2026-09-28T21:01:40+00:00
NameHNHealthyHabitsModel
Title居家護理-健康紀錄評估邏輯模型
Realmtw
Description描述居家護理健康紀錄評估的資料需求。依 V5.0.16 有效欄位建立,來源欄位對應另列於 Mapping。
Typehttp://ltc-ig.fhir.tw/StructureDefinition/HNHealthyHabitsModel
Kindlogical

Resources that use this resource

StructureDefinition
tw.iii.ltc#currentHNEvaluationAPIModel居家護理-全人評估 API 邏輯模型

Resources that this resource uses

ValueSet
tw.iii.ltc#currenthn-vs-19264db8df7b居家護理-有無與未知選項
tw.iii.ltc#currenthn-vs-58e4d598f859居家護理-是否選項
tw.iii.ltc#currenthn-vs-5f96e05811ec居家護理-飲酒狀態選項
tw.iii.ltc#currenthn-vs-85c814c9b8ba居家護理-吸菸狀態選項
tw.iii.ltc#currenthn-vs-a5f17d46becb居家護理-嚼食檳榔狀態選項

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition HNHealthyHabitsModel

NameFlagsCard.TypeDescription & Constraintsdoco
.. HNHealthyHabitsModel 0..*Base居家護理-健康紀錄評估邏輯模型
... date 1..1date紀錄日期
... nurseID 1..1string護理人員身分證字號
... isSmoking 1..1Coding吸菸狀態
Binding: 居家護理-吸菸狀態選項 (required)
... isAlcohol 1..1Coding飲酒狀態
Binding: 居家護理-飲酒狀態選項 (required)
... isBetelNut 1..1Coding嚼食檳榔狀態
Binding: 居家護理-嚼食檳榔狀態選項 (required)
... quitSmoking 0..1decimal戒菸年數
... beforeSmoking 0..1decimal戒菸前吸菸年數
... smokingYear 0..1decimal吸菸年數
... quitAlcohol 0..1decimal戒酒年數
... beforequitAlcohol 0..1decimal戒酒前飲酒年數
... alcoholYear 0..1decimal飲酒年數
... quitBetelNut 0..1decimal戒檳榔年數
... beforequitBetelNut 0..1decimal戒除前嚼食檳榔年數
... betelNutYear 0..1decimal嚼食檳榔年數
... isAllergy 1..1Coding食物過敏
Binding: 居家護理-有無與未知選項 (required)
... allergyDesc 0..1string食物過敏說明
... isAllergyDrug 1..1Coding藥物過敏
Binding: 居家護理-有無與未知選項 (required)
... allergyDrugDesc 0..1string藥物過敏說明
... vaccination 1..1BackboneElement疫苗紀錄
.... answer 1..1Coding是否接種
Binding: 居家護理-有無與未知選項 (required)
.... multipleAnswer 0..1string疫苗種類
.... other 0..1string接種年份
... isTemporary 0..1Coding是否暫存
Binding: 居家護理-是否選項 (required)

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "HNHealthyHabitsModel",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://ltc-ig.fhir.tw/StructureDefinition/HNHealthyHabitsModel",
  "version": "1.1.0",
  "name": "HNHealthyHabitsModel",
  "title": "居家護理-健康紀錄評估邏輯模型",
  "status": "draft",
  "date": "2026-09-28T21:01:40+00:00",
  "publisher": "經濟部產業發展署",
  "contact": [
    {
      "name": "經濟部產業發展署",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.ida.gov.tw/"
        }
      ]
    }
  ],
  "description": "描述居家護理健康紀錄評估的資料需求。依 V5.0.16 有效欄位建立,來源欄位對應另列於 Mapping。",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "hn-healthyhabits-fhir",
      "uri": "http://ltc-ig.fhir.tw/StructureDefinition/HNHealthyHabitsResponse",
      "name": "居家護理-健康紀錄評估欄位對應"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://ltc-ig.fhir.tw/StructureDefinition/HNHealthyHabitsModel",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "HNHealthyHabitsModel",
        "path": "HNHealthyHabitsModel",
        "short": "居家護理-健康紀錄評估邏輯模型",
        "definition": "描述居家護理健康紀錄評估的資料需求。依 V5.0.16 有效欄位建立,來源欄位對應另列於 Mapping。",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false
      },
      {
        "id": "HNHealthyHabitsModel.date",
        "path": "HNHealthyHabitsModel.date",
        "short": "紀錄日期",
        "definition": "紀錄日期",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.date",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "date"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Date')",
            "comment": "來源欄位/題目:Date"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.nurseID",
        "path": "HNHealthyHabitsModel.nurseID",
        "short": "護理人員身分證字號",
        "definition": "護理人員身分證字號",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.nurseID",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='NurseID')",
            "comment": "來源欄位/題目:NurseID"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isSmoking",
        "path": "HNHealthyHabitsModel.isSmoking",
        "short": "吸菸狀態",
        "definition": "吸菸狀態",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.isSmoking",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-85c814c9b8ba"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsSmoking')",
            "comment": "來源欄位/題目:IsSmoking"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isAlcohol",
        "path": "HNHealthyHabitsModel.isAlcohol",
        "short": "飲酒狀態",
        "definition": "飲酒狀態",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.isAlcohol",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-5f96e05811ec"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsAlcohol')",
            "comment": "來源欄位/題目:IsAlcohol"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isBetelNut",
        "path": "HNHealthyHabitsModel.isBetelNut",
        "short": "嚼食檳榔狀態",
        "definition": "嚼食檳榔狀態",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.isBetelNut",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-a5f17d46becb"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsBetelNut')",
            "comment": "來源欄位/題目:IsBetelNut"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.quitSmoking",
        "path": "HNHealthyHabitsModel.quitSmoking",
        "short": "戒菸年數",
        "definition": "戒菸年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.quitSmoking",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='QuitSmoking')",
            "comment": "來源欄位/題目:QuitSmoking"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.beforeSmoking",
        "path": "HNHealthyHabitsModel.beforeSmoking",
        "short": "戒菸前吸菸年數",
        "definition": "戒菸前吸菸年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.beforeSmoking",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BeforeSmoking')",
            "comment": "來源欄位/題目:BeforeSmoking"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.smokingYear",
        "path": "HNHealthyHabitsModel.smokingYear",
        "short": "吸菸年數",
        "definition": "吸菸年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.smokingYear",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='SmokingYear')",
            "comment": "來源欄位/題目:SmokingYear"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.quitAlcohol",
        "path": "HNHealthyHabitsModel.quitAlcohol",
        "short": "戒酒年數",
        "definition": "戒酒年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.quitAlcohol",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='QuitAlcohol')",
            "comment": "來源欄位/題目:QuitAlcohol"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.beforequitAlcohol",
        "path": "HNHealthyHabitsModel.beforequitAlcohol",
        "short": "戒酒前飲酒年數",
        "definition": "戒酒前飲酒年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.beforequitAlcohol",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BeforequitAlcohol')",
            "comment": "來源欄位/題目:BeforequitAlcohol"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.alcoholYear",
        "path": "HNHealthyHabitsModel.alcoholYear",
        "short": "飲酒年數",
        "definition": "飲酒年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.alcoholYear",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='AlcoholYear')",
            "comment": "來源欄位/題目:AlcoholYear"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.quitBetelNut",
        "path": "HNHealthyHabitsModel.quitBetelNut",
        "short": "戒檳榔年數",
        "definition": "戒檳榔年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.quitBetelNut",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='QuitBetelNut')",
            "comment": "來源欄位/題目:QuitBetelNut"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.beforequitBetelNut",
        "path": "HNHealthyHabitsModel.beforequitBetelNut",
        "short": "戒除前嚼食檳榔年數",
        "definition": "戒除前嚼食檳榔年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.beforequitBetelNut",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BeforequitBetelNut')",
            "comment": "來源欄位/題目:BeforequitBetelNut"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.betelNutYear",
        "path": "HNHealthyHabitsModel.betelNutYear",
        "short": "嚼食檳榔年數",
        "definition": "嚼食檳榔年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.betelNutYear",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BetelNutYear')",
            "comment": "來源欄位/題目:BetelNutYear"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isAllergy",
        "path": "HNHealthyHabitsModel.isAllergy",
        "short": "食物過敏",
        "definition": "食物過敏",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.isAllergy",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-19264db8df7b"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsAllergy')",
            "comment": "來源欄位/題目:IsAllergy"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.allergyDesc",
        "path": "HNHealthyHabitsModel.allergyDesc",
        "short": "食物過敏說明",
        "definition": "食物過敏說明",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.allergyDesc",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Allergy_Desc')",
            "comment": "來源欄位/題目:Allergy_Desc"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isAllergyDrug",
        "path": "HNHealthyHabitsModel.isAllergyDrug",
        "short": "藥物過敏",
        "definition": "藥物過敏",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.isAllergyDrug",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-19264db8df7b"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsAllergyDrug')",
            "comment": "來源欄位/題目:IsAllergyDrug"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.allergyDrugDesc",
        "path": "HNHealthyHabitsModel.allergyDrugDesc",
        "short": "藥物過敏說明",
        "definition": "藥物過敏說明",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.allergyDrugDesc",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='AllergyDrug_Desc')",
            "comment": "來源欄位/題目:AllergyDrug_Desc"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination",
        "path": "HNHealthyHabitsModel.vaccination",
        "short": "疫苗紀錄",
        "definition": "疫苗紀錄",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.vaccination",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination')",
            "comment": "來源欄位/題目:Vaccination"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.id",
        "path": "HNHealthyHabitsModel.vaccination.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.extension",
        "path": "HNHealthyHabitsModel.vaccination.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.modifierExtension",
        "path": "HNHealthyHabitsModel.vaccination.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.answer",
        "path": "HNHealthyHabitsModel.vaccination.answer",
        "short": "是否接種",
        "definition": "是否接種",
        "min": 1,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.vaccination.answer",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-19264db8df7b"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination').item.where(linkId='Vaccination.Answer')",
            "comment": "來源欄位/題目:Vaccination.Answer"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.multipleAnswer",
        "path": "HNHealthyHabitsModel.vaccination.multipleAnswer",
        "short": "疫苗種類",
        "definition": "疫苗種類。有接種時必填。以逗號分隔流感疫苗、肺炎雙球菌疫苗、COVID-19疫苗或其他。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.vaccination.multipleAnswer",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination').item.where(linkId='Vaccination.MultipleAnswer')",
            "comment": "來源欄位/題目:Vaccination.MultipleAnswer"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.other",
        "path": "HNHealthyHabitsModel.vaccination.other",
        "short": "接種年份",
        "definition": "接種年份。依疫苗種類順序填入西元年或不記得;不可捏造接種日期。",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.vaccination.other",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination').item.where(linkId='Vaccination.Other')",
            "comment": "來源欄位/題目:Vaccination.Other"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isTemporary",
        "path": "HNHealthyHabitsModel.isTemporary",
        "short": "是否暫存",
        "definition": "是否暫存",
        "min": 0,
        "max": "1",
        "base": {
          "path": "HNHealthyHabitsModel.isTemporary",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-58e4d598f859"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsTemporary')",
            "comment": "來源欄位/題目:IsTemporary"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "HNHealthyHabitsModel",
        "path": "HNHealthyHabitsModel",
        "short": "居家護理-健康紀錄評估邏輯模型",
        "definition": "描述居家護理健康紀錄評估的資料需求。依 V5.0.16 有效欄位建立,來源欄位對應另列於 Mapping。"
      },
      {
        "id": "HNHealthyHabitsModel.date",
        "path": "HNHealthyHabitsModel.date",
        "short": "紀錄日期",
        "definition": "紀錄日期",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Date')",
            "comment": "來源欄位/題目:Date"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.nurseID",
        "path": "HNHealthyHabitsModel.nurseID",
        "short": "護理人員身分證字號",
        "definition": "護理人員身分證字號",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='NurseID')",
            "comment": "來源欄位/題目:NurseID"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isSmoking",
        "path": "HNHealthyHabitsModel.isSmoking",
        "short": "吸菸狀態",
        "definition": "吸菸狀態",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-85c814c9b8ba"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsSmoking')",
            "comment": "來源欄位/題目:IsSmoking"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isAlcohol",
        "path": "HNHealthyHabitsModel.isAlcohol",
        "short": "飲酒狀態",
        "definition": "飲酒狀態",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-5f96e05811ec"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsAlcohol')",
            "comment": "來源欄位/題目:IsAlcohol"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isBetelNut",
        "path": "HNHealthyHabitsModel.isBetelNut",
        "short": "嚼食檳榔狀態",
        "definition": "嚼食檳榔狀態",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-a5f17d46becb"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsBetelNut')",
            "comment": "來源欄位/題目:IsBetelNut"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.quitSmoking",
        "path": "HNHealthyHabitsModel.quitSmoking",
        "short": "戒菸年數",
        "definition": "戒菸年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='QuitSmoking')",
            "comment": "來源欄位/題目:QuitSmoking"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.beforeSmoking",
        "path": "HNHealthyHabitsModel.beforeSmoking",
        "short": "戒菸前吸菸年數",
        "definition": "戒菸前吸菸年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BeforeSmoking')",
            "comment": "來源欄位/題目:BeforeSmoking"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.smokingYear",
        "path": "HNHealthyHabitsModel.smokingYear",
        "short": "吸菸年數",
        "definition": "吸菸年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='SmokingYear')",
            "comment": "來源欄位/題目:SmokingYear"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.quitAlcohol",
        "path": "HNHealthyHabitsModel.quitAlcohol",
        "short": "戒酒年數",
        "definition": "戒酒年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='QuitAlcohol')",
            "comment": "來源欄位/題目:QuitAlcohol"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.beforequitAlcohol",
        "path": "HNHealthyHabitsModel.beforequitAlcohol",
        "short": "戒酒前飲酒年數",
        "definition": "戒酒前飲酒年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BeforequitAlcohol')",
            "comment": "來源欄位/題目:BeforequitAlcohol"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.alcoholYear",
        "path": "HNHealthyHabitsModel.alcoholYear",
        "short": "飲酒年數",
        "definition": "飲酒年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='AlcoholYear')",
            "comment": "來源欄位/題目:AlcoholYear"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.quitBetelNut",
        "path": "HNHealthyHabitsModel.quitBetelNut",
        "short": "戒檳榔年數",
        "definition": "戒檳榔年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='QuitBetelNut')",
            "comment": "來源欄位/題目:QuitBetelNut"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.beforequitBetelNut",
        "path": "HNHealthyHabitsModel.beforequitBetelNut",
        "short": "戒除前嚼食檳榔年數",
        "definition": "戒除前嚼食檳榔年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BeforequitBetelNut')",
            "comment": "來源欄位/題目:BeforequitBetelNut"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.betelNutYear",
        "path": "HNHealthyHabitsModel.betelNutYear",
        "short": "嚼食檳榔年數",
        "definition": "嚼食檳榔年數。單位為年,至小數一位;依目前使用或已戒除狀態填寫。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ],
        "minValueDecimal": 0,
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='BetelNutYear')",
            "comment": "來源欄位/題目:BetelNutYear"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isAllergy",
        "path": "HNHealthyHabitsModel.isAllergy",
        "short": "食物過敏",
        "definition": "食物過敏",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-19264db8df7b"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsAllergy')",
            "comment": "來源欄位/題目:IsAllergy"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.allergyDesc",
        "path": "HNHealthyHabitsModel.allergyDesc",
        "short": "食物過敏說明",
        "definition": "食物過敏說明",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Allergy_Desc')",
            "comment": "來源欄位/題目:Allergy_Desc"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isAllergyDrug",
        "path": "HNHealthyHabitsModel.isAllergyDrug",
        "short": "藥物過敏",
        "definition": "藥物過敏",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-19264db8df7b"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsAllergyDrug')",
            "comment": "來源欄位/題目:IsAllergyDrug"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.allergyDrugDesc",
        "path": "HNHealthyHabitsModel.allergyDrugDesc",
        "short": "藥物過敏說明",
        "definition": "藥物過敏說明",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='AllergyDrug_Desc')",
            "comment": "來源欄位/題目:AllergyDrug_Desc"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination",
        "path": "HNHealthyHabitsModel.vaccination",
        "short": "疫苗紀錄",
        "definition": "疫苗紀錄",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination')",
            "comment": "來源欄位/題目:Vaccination"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.answer",
        "path": "HNHealthyHabitsModel.vaccination.answer",
        "short": "是否接種",
        "definition": "是否接種",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-19264db8df7b"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination').item.where(linkId='Vaccination.Answer')",
            "comment": "來源欄位/題目:Vaccination.Answer"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.multipleAnswer",
        "path": "HNHealthyHabitsModel.vaccination.multipleAnswer",
        "short": "疫苗種類",
        "definition": "疫苗種類。有接種時必填。以逗號分隔流感疫苗、肺炎雙球菌疫苗、COVID-19疫苗或其他。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination').item.where(linkId='Vaccination.MultipleAnswer')",
            "comment": "來源欄位/題目:Vaccination.MultipleAnswer"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.vaccination.other",
        "path": "HNHealthyHabitsModel.vaccination.other",
        "short": "接種年份",
        "definition": "接種年份。依疫苗種類順序填入西元年或不記得;不可捏造接種日期。",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='Vaccination').item.where(linkId='Vaccination.Other')",
            "comment": "來源欄位/題目:Vaccination.Other"
          }
        ]
      },
      {
        "id": "HNHealthyHabitsModel.isTemporary",
        "path": "HNHealthyHabitsModel.isTemporary",
        "short": "是否暫存",
        "definition": "是否暫存",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ltc-ig.fhir.tw/ValueSet/hn-vs-58e4d598f859"
        },
        "mapping": [
          {
            "identity": "hn-healthyhabits-fhir",
            "map": "QuestionnaireResponse.item.where(linkId='IsTemporary')",
            "comment": "來源欄位/題目:IsTemporary"
          }
        ]
      }
    ]
  }
}